﻿<?xml version="1.0" encoding="utf-8"?>
<WorkflowRoot>
  <Declarations>
    <DefField>
      <Type>Int32</Type>
      <Name>count</Name>
    </DefField>
  </Declarations>
  <Child>
    <Sequence>
      <Declarations />
      <Items>
        <Assign>
          <TargetField>
            <Explicit>
              <Value>count</Value>
              <Type>LITERAL</Type>
            </Explicit>
          </TargetField>
          <SourceValue>
            <Explicit>
              <Value>5</Value>
              <Type>Int32</Type>
            </Explicit>
          </SourceValue>
        </Assign>
        <While>
          <Condition>
            <GreaterThan>
              <Arg>
                <Explicit>
                  <Value>count</Value>
                  <Type>LITERAL</Type>
                </Explicit>
			  </Arg>
			  <Arg>
                <Explicit>
                  <Value>0</Value>
                  <Type>Int32</Type>
                </Explicit>
              </Arg>
            </GreaterThan>
          </Condition>
          <Body>
            <Sequence>
              <Declarations />
              <Items>
                <WriteOnboardLed>
                  <Arg>
                    <Explicit>
                      <Value>true</Value>
                      <Type>Boolean</Type>
                    </Explicit>
                  </Arg>
                </WriteOnboardLed>
                <Delay>
                  <Arg>
                    <Explicit>
                      <Value>500</Value>
                      <Type>Int32</Type>
                    </Explicit>
                  </Arg>
                </Delay>
                <WriteOnboardLed>
                  <Arg>
                    <Explicit>
                      <Value>false</Value>
                      <Type>Boolean</Type>
                    </Explicit>
                  </Arg>
                </WriteOnboardLed>
                <Delay>
                  <Arg>
                    <Explicit>
                      <Value>500</Value>
                      <Type>Int32</Type>
                    </Explicit>
                  </Arg>
                </Delay>
                <Assign>
                  <TargetField>
                    <Explicit>
                      <Value>count</Value>
                      <Type>LITERAL</Type>
                    </Explicit>
                  </TargetField>
                  <SourceValue>
                    <Sub>
                      <Arg>
                        <Explicit>
                          <Value>count</Value>
                          <Type>LITERAL</Type>
                        </Explicit>
					  </Arg>
					  <Arg>
                        <Explicit>
                          <Value>1</Value>
                          <Type>Int32</Type>
                        </Explicit>
                      </Arg>
                    </Sub>
                  </SourceValue>
                </Assign>
              </Items>
            </Sequence>
          </Body>
        </While>
      </Items>
    </Sequence>
  </Child>
</WorkflowRoot>